package com.yungu.swift.assets.passenger.dao;

import com.yungu.swift.assets.passenger.model.dto.PassengerEmergencyMemberDto;
import com.yungu.swift.assets.passenger.model.param.AdminPassengerUuidPageParam;
import com.yungu.swift.assets.passenger.model.vo.PassengerEmergencyMemberBean;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 乘客紧急人成员表
 *
 * @author Zerrion
 * @version 1.0.3-RELEASE
 * @since 2018-10-16 10:35:39
 */
public interface PassengerEmergencyMemberMapper extends IMapper<PassengerEmergencyMemberDto> {

    /**
     * 获取紧急联系成员信息
     *
     * @param params Map
     * @return List PassengerEmergencyMemberBean
     */
    List<PassengerEmergencyMemberBean> listEmergencyMember(Map<String, Object> params);

    /**
     * 批量更新成员状态
     *
     * @param params Map
     * @return int
     */
    int patchUpdateStatus(Map<String, Object> params);

    /**
     * 修改紧急联系人默认状态
     * @param params
     * @return
     */
     int updateIsDefault(Map<String, Object> params);
}
